﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserSubmit.ascx.cs" Inherits="UserControls_UserSubmit" %>

<%--divInformation--%>
<div runat="server" id="divInformation" class="table"> 
    <div class="row">
        <div class="header">Name</div>
    </div>
    <div class="row">
        <div class="content" style="height: 24px">
            <asp:TextBox runat="server" CssClass="textbox" ID="txtFirstName"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            ErrorMessage="(*)" ControlToValidate="txtFirstName" ForeColor="Red" 
            SetFocusOnError="True"></asp:RequiredFieldValidator>
        </div>
        <div class="content" style="height: 24px">
            <asp:TextBox runat="server" CssClass="textbox" ID="txtLastName"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
            ErrorMessage="(*)" ControlToValidate="txtLastName" ForeColor="Red" 
            SetFocusOnError="True"></asp:RequiredFieldValidator>
        </div>
        <div class="row" style="font-size:x-small">
            <div class="header">First Name</div>
            <div class="header">Last Name</div>
        </div>
    </div>
    <div class="row">
        <div class="header">Email</div>
    </div>
    <div class="row">
        <div class="content">
            <asp:TextBox runat="server" CssClass="textbox" ID="txtEmail"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ErrorMessage="(*)" ControlToValidate="txtEmail" ForeColor="Red" 
                    SetFocusOnError="True" Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ErrorMessage="Bad email address" ControlToValidate="txtEmail" ForeColor="Red" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </div>
    </div>
    <div class="row">
        <div class="header">Phone</div>
    </div>
    <div class="row">
        <div class="content">
            <asp:TextBox runat="server" CssClass="textbox" ID="txtPhone"></asp:TextBox>
        </div>
    </div>
</div>


<%--divRoleType--%>
<div runat="server" id="divRoleType" class="table">
    <div class="row">
        <div class="header"><b>Select Control Panel Role</b><hr /></div>
        <div style="clear: both;">
            <asp:Repeater ID="rptRole" runat="server">
                <HeaderTemplate>
                    <ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <div class="row"><asp:CheckBox ID="chkRole" CssClass="textbox" Checked='<%#Eval("IsAllow")%>' runat="server" Text='<%# " <b>" + Eval("Name") + "</b> - " + Eval("Description") %>' /></div>
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
        </div>
    </div>
    <div class="row">
        <div class="header"><b>Select Server Role</b><hr /></div>
        <div style="clear: both;">
            <asp:Repeater ID="rptServerRole" runat="server">
                <HeaderTemplate>
                    <ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <div class="row"><asp:CheckBox ID="chkServerRole" CssClass="textbox" Checked='<%#Eval("IsAllow")%>' runat="server" Text='<%# " <b>" + Eval("Name") + "</b> - " + Eval("Description") %>' /></div>
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
        </div>
    </div>
</div>